package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检测信息对象 lw_detection
 * 
 * @author ruoyi
 * @date 2023-08-29
 */
public class LwDetection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检测表id */
    private Long id;

    /** 生产记录id */
    @Excel(name = "生产记录id")
    private Long courseId;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 操作用户id */
    @Excel(name = "操作用户id")
    private Long userId;

    private String userName;

    /** 合格数 */
    @Excel(name = "合格数")
    private Long acceptanceNumber;

    /** 不合格数 */
    @Excel(name = "不合格数")
    private Long disqualificationNumber;

    /** 检测类型 */
    @Excel(name = "检测类型")
    private Long status;

    private String remark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAcceptanceNumber(Long acceptanceNumber)
    {
        this.acceptanceNumber = acceptanceNumber;
    }

    public Long getAcceptanceNumber() 
    {
        return acceptanceNumber;
    }
    public void setDisqualificationNumber(Long disqualificationNumber) 
    {
        this.disqualificationNumber = disqualificationNumber;
    }

    public Long getDisqualificationNumber() 
    {
        return disqualificationNumber;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("time", getTime())
            .append("userId", getUserId())
            .append("acceptanceNumber", getAcceptanceNumber())
            .append("disqualificationNumber", getDisqualificationNumber())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
